package weekend;

public class Method1 {
    int length ;
    int wide;

    public void method1(int length,int wide){
        for (int i=1;i<=wide;i++){
            for (int j=1;j<=length;j++){
                System.out.print("*");
            }
            System.out.println("");
        }
    }

    public int area(int length,int wide){
        for (int i=1;i<=wide;i++){
            for (int j=1;j<=length;j++){
                System.out.print("*");
            }
            System.out.println("");
        }
        return length*wide;
    }
}
